package com.tong.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 分类(Category)实体类
 *
 * @author makejava
 * @since 2021-07-30 09:56:13
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Category implements Serializable {
    private static final long serialVersionUID = -89821670203173250L;

    private Integer id;
    /**
     * 名称
     */
    private String name;
    /**
     * 父级分类id
     */
    private Integer parentId;
    /**
     * 下级分类
     */
    private List<Category> children;

    private Date createdAt;

    private Date updatedAt;

    private Date deletedAt;
}